const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  lintOnSave:false,
  publicPath: "/", // 和 baseUrl 保持一致
  devServer: {
    proxy: {
      '/api': {
        target: 'http://localhost:9000',
        // target: 'http://192.168.31.126:9000',
        ws: false,
        changeOrigin: true,
        pathRewrite: {
          '^/api': '/'
        }
      },
    },
    port: 8082
  }
})
